package com.nifostasky.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import lombok.Data;

/**
 * 用户表(User)表实体类
 *
 * @author makejava
 * @since 2021-09-26 11:08:48
 */
@Data
@TableName(value = "user")
public class User implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
    *主键自增:
    *表id
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
    *用户名
    */
    @TableField(value = "name")
    private String name;

    /**
    *电话号码
    */
    @TableField(value = "phone")
    private String phone;

    /**
    *用户年龄
    */
    @TableField(value = "age")
    private Integer age;

    /**
    *用户性别：【0：男】，【1：女】
    */
    @TableField(value = "sex")
    private Integer sex;

}
